package fr.uniscol.siecle.model;

import java.io.Serializable;

public class MEFAppartenance implements Serializable, DonneeSiecle {

	private Division division = null;
	
	private MEF mef = null;
	
	private int effectifPrevu = 0;
	
	private int effectifCalcule = 0;

	public MEFAppartenance() {
		super();
	}

	public MEFAppartenance(Division division, MEF mef) {
		super();
		this.division = division;
		this.mef = mef;
	}

	public Division getDivision() {
		return division;
	}

	public void setDivision(Division division) {
		this.division = division;
	}

	public MEF getMef() {
		return mef;
	}

	public void setMef(MEF mef) {
		this.mef = mef;
	}

	public int getEffectifPrevu() {
		return effectifPrevu;
	}

	public void setEffectifPrevu(int effectifPrevu) {
		this.effectifPrevu = effectifPrevu;
	}

	public int getEffectifCalcule() {
		return effectifCalcule;
	}

	public void setEffectifCalcule(int effectifCalcule) {
		this.effectifCalcule = effectifCalcule;
	}

	@Override
	public boolean equals(Object obj) {
		MEFAppartenance ma = (MEFAppartenance)obj;
		
		return ma.getMef().equals(getMef()) && ma.getDivision().equals(getDivision());
	}
	
}
